package com.ssy.lingxi.settle.accounts.model.vo.request;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 新增发票列表VO
 * @author 伍将
 * @date 2021/1/27
 * @version 2.0.0
 */
public class AddReceiptInvoiceListVO implements Serializable {
    private static final long serialVersionUID = 4493125800601459032L;

    /**
     * 开票id
     */
    @NotNull(message = "开票id需大于0")
    @Positive(message = "开票id需大于0")
    private Long receiptInvoiceId;

    /**
     * 退货开票列表
     */
    @Valid
    @Size(min = 1, message = "发票不能为空")
    private List<AddReturnReceiptInvoiceVO> addList;

    public List<AddReturnReceiptInvoiceVO> getAddList() {
        return addList;
    }

    public void setAddList(List<AddReturnReceiptInvoiceVO> addList) {
        this.addList = addList;
    }

    public Long getReceiptInvoiceId() {
        return receiptInvoiceId;
    }

    public void setReceiptInvoiceId(Long receiptInvoiceId) {
        this.receiptInvoiceId = receiptInvoiceId;
    }
}
